package xyz.xtt.admin.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import xyz.xtt.admin.entity.TblChainTransaction;
import xyz.xtt.admin.mapper.ChainTransactionMapper;
import xyz.xtt.admin.service.IChainTransactionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 区块链交易表 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-11-21
 */
@Service
public class ChainTransactionServiceImpl extends ServiceImpl<ChainTransactionMapper, TblChainTransaction> implements IChainTransactionService {

    @Autowired
    private ChainTransactionMapper chainTransactionMapper;

    @Override
    public Page<TblChainTransaction> getList(Integer current, Integer pageSize, Integer status,String searchType) {

        return chainTransactionMapper.getList(new Page<>(current,pageSize), status,searchType);
    }
}
